import React from 'react'
import { useState } from 'react'
export default function TestState() {
  // 使用 useState 创建状态数据
  let [count, setCount] = useState(100)
  console.log(count, setCount)
  return (
    <div>
      <p>state count:{count}</p>
      <button onClick={() => setCount(count + 1)}>点击</button>
    </div>
  )
}
